-
Notifications
You must be signed in to change notification settings - Fork 381
Add TIN reverification workflow for 1099-DIV #1591
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
|
||
| def has_verified_tax_id? | ||
| tax_id.present? && (!requires_w9? || tax_id_status == UserComplianceInfo::TAX_ID_STATUS_VERIFIED) | ||
| tax_id.present? && (!requires_w9? || tax_id_status == UserComplianceInfo::TAX_ID_STATUS_VERIFIED) && !requires_tin_reverification |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Set has_verified_tax_id to false if requires_tin_reverification is true to prevent flagged users to receive any payments
| self.tax_id_status = nil if tax_status_related_attributes.any? { send("#{_1}_changed?") } | ||
| if tax_status_related_attributes.any? { send("#{_1}_changed?") } | ||
| self.tax_id_status = nil | ||
| self.requires_tin_reverification = false if requires_tin_reverification? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clear re-verification flag if user updates their tax information
|
|
||
| React.useEffect(() => { | ||
| if (user.requiresTinReverification && pathname !== "/settings/tax") { | ||
| router.replace("/settings/tax"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Redirect users flagged for TIN re-verification to the tax settings page to forced them to re-enter their TIN and name
| if (user.requiresTinReverification && pathname !== "/settings/tax") { | ||
| return ( | ||
| <div className="flex h-screen items-center justify-center"> | ||
| <p className="text-muted-foreground">Redirecting...</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Block rendering while redirecting
ershad
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nyomanjyotisa _a added one comment, lgtm otherwise 👍🏼
| if compliance_info.nil? | ||
| not_found_tins << tin | ||
| next | ||
| end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be nice to log TINs that's in the report, but not in DB.
Issue https://github.com/antiwork/accounting/issues/77
Description
The IRS sent a CP 2100A notice indicating TIN/name mismatches for certain users on 1099-DIV. We need to:
Screenshots
Tax Setting Page
Email
One Time Script execution
Dry run
Live
AI disclosure
Claude Sonnet 4.5 used for code generation. All code self reviewed.